<template>
  <demo-section>
    <demo-block title="基础用法">
      <xc-button
        type="primary"
        style="margin-left: 15px"
        @click="handleClick"
        >按钮</xc-button
      >
    </demo-block>
  </demo-section>
</template>
<script lang="ts">
export default {
  setup() {
    function handleClick(evt) {
      console.log('父组件响应事件');
    }
    return {
      handleClick,
    };
  },
};
</script>
